namespace Collection.Entities {
    	using System;
    	
    	
    	/// <summary>
    	/// 表名：Bulletin 主键列：Id
    	/// </summary>
    	[SerializableAttribute()]
    	public partial class _LotteryBriefing : MySoft.Data.Entity {
    		
    		protected Int64 _Id;
    		
    		protected Int32 _LotteryTicketId;
    		
    		protected String _SerialNumber;
    		
    		protected DateTime _LotteryDates;
    		
    		protected Decimal _Sales;
    		
    		protected Decimal _Cumulative;
    		
    		protected Int32 _Provider;
    		
    		public Int64 Id {
    			get {
    				return this._Id;
    			}
    			set {
    				this.OnPropertyValueChange(_.Id, _Id, value);
    				this._Id = value;
    			}
    		}
    		
    		/// <summary>
    		/// 彩票编号
    		/// </summary>
    		public Int32 LotteryTicketId {
    			get {
    				return this._LotteryTicketId;
    			}
    			set {
    				this.OnPropertyValueChange(_.LotteryTicketId, _LotteryTicketId, value);
    				this._LotteryTicketId = value;
    			}
    		}
    		
    		/// <summary>
    		/// 期号
    		/// </summary>
    		public String SerialNumber {
    			get {
    				return this._SerialNumber;
    			}
    			set {
    				this.OnPropertyValueChange(_.SerialNumber, _SerialNumber, value);
    				this._SerialNumber = value;
    			}
    		}
    		
    		/// <summary>
    		/// 开奖日期
    		/// </summary>
    		public DateTime LotteryDates {
    			get {
    				return this._LotteryDates;
    			}
    			set {
    				this.OnPropertyValueChange(_.LotteryDates, _LotteryDates, value);
    				this._LotteryDates = value;
    			}
    		}
    		
    		/// <summary>
    		/// 本期销售金额
    		/// </summary>
    		public Decimal Sales {
    			get {
    				return this._Sales;
    			}
    			set {
    				this.OnPropertyValueChange(_.Sales, _Sales, value);
    				this._Sales = value;
    			}
    		}
    		
    		/// <summary>
    		/// 奖池资金累计
    		/// </summary>
    		public Decimal Cumulative {
    			get {
    				return this._Cumulative;
    			}
    			set {
    				this.OnPropertyValueChange(_.Cumulative, _Cumulative, value);
    				this._Cumulative = value;
    			}
    		}
    		
    		public Int32 Provider {
    			get {
    				return this._Provider;
    			}
    			set {
    				this.OnPropertyValueChange(_.Provider, _Provider, value);
    				this._Provider = value;
    			}
    		}
    		
    		/// <summary>
    		/// 获取实体对应的表名
    		/// </summary>
    		protected override MySoft.Data.Table GetTable() {
                return new MySoft.Data.Table<_LotteryBriefing>("LotteryBriefing");
    		}
    		
    		/// <summary>
    		/// 获取实体中的标识列
    		/// </summary>
    		protected override MySoft.Data.Field GetIdentityField() {
    			return _.Id;
    		}
    		
    		/// <summary>
    		/// 获取实体中的主键列
    		/// </summary>
    		protected override MySoft.Data.Field[] GetPrimaryKeyFields() {
    			return new MySoft.Data.Field[] {
    					_.Id};
    		}
    		
    		/// <summary>
    		/// 获取列信息
    		/// </summary>
    		protected override MySoft.Data.Field[] GetFields() {
    			return new MySoft.Data.Field[] {
    					_.Id,
    					_.LotteryTicketId,
    					_.SerialNumber,
    					_.LotteryDates,
    					_.Sales,
    					_.Cumulative,
    					_.Provider};
    		}
    		
    		/// <summary>
    		/// 获取列数据
    		/// </summary>
    		protected override object[] GetValues() {
    			return new object[] {
    					this._Id,
    					this._LotteryTicketId,
    					this._SerialNumber,
    					this._LotteryDates,
    					this._Sales,
    					this._Cumulative,
    					this._Provider};
    		}
    		
    		/// <summary>
    		/// 给当前实体赋值
    		/// </summary>
    		protected override void SetValues(MySoft.Data.IRowReader reader) {
    			if ((false == reader.IsDBNull(_.Id))) {
    				this._Id = reader.GetInt64(_.Id);
    			}
    			if ((false == reader.IsDBNull(_.LotteryTicketId))) {
    				this._LotteryTicketId = reader.GetInt32(_.LotteryTicketId);
    			}
    			if ((false == reader.IsDBNull(_.SerialNumber))) {
    				this._SerialNumber = reader.GetString(_.SerialNumber);
    			}
    			if ((false == reader.IsDBNull(_.LotteryDates))) {
    				this._LotteryDates = reader.GetDateTime(_.LotteryDates);
    			}
    			if ((false == reader.IsDBNull(_.Sales))) {
    				this._Sales = reader.GetDecimal(_.Sales);
    			}
    			if ((false == reader.IsDBNull(_.Cumulative))) {
    				this._Cumulative = reader.GetDecimal(_.Cumulative);
    			}
    			if ((false == reader.IsDBNull(_.Provider))) {
    				this._Provider = reader.GetInt32(_.Provider);
    			}
    		}
    		
    		public override int GetHashCode() {
    			return base.GetHashCode();
    		}
    		
    		public override bool Equals(object obj) {
    			if ((obj == null)) {
    				return false;
    			}
    			if ((false == typeof(_LotteryBriefing).IsAssignableFrom(obj.GetType()))) {
    				return false;
    			}
    			if ((((object)(this)) == ((object)(obj)))) {
    				return true;
    			}
    			return false;
    		}
    		
    		public class _ {
    			
    			/// <summary>
    			/// 表示选择所有列，与*等同
    			/// </summary>
    			public static MySoft.Data.AllField All = new MySoft.Data.AllField<_LotteryBriefing>();
    			
    			/// <summary>
    			/// 字段名：Id - 数据类型：Int64
    			/// </summary>
    			public static MySoft.Data.Field Id = new MySoft.Data.Field<_LotteryBriefing>("Id");
    			
    			/// <summary>
    			/// 彩票编号 - 字段名：LotteryTicketId - 数据类型：Int32
    			/// </summary>
    			public static MySoft.Data.Field LotteryTicketId = new MySoft.Data.Field<_LotteryBriefing>("LotteryTicketId");
    			
    			/// <summary>
    			/// 期号 - 字段名：SerialNumber - 数据类型：String
    			/// </summary>
    			public static MySoft.Data.Field SerialNumber = new MySoft.Data.Field<_LotteryBriefing>("SerialNumber");
    			
    			/// <summary>
    			/// 开奖日期 - 字段名：LotteryDates - 数据类型：DateTime
    			/// </summary>
    			public static MySoft.Data.Field LotteryDates = new MySoft.Data.Field<_LotteryBriefing>("LotteryDates");
    			
    			/// <summary>
    			/// 本期销售金额 - 字段名：Sales - 数据类型：Decimal
    			/// </summary>
    			public static MySoft.Data.Field Sales = new MySoft.Data.Field<_LotteryBriefing>("Sales");
    			
    			/// <summary>
    			/// 奖池资金累计 - 字段名：Cumulative - 数据类型：Decimal
    			/// </summary>
    			public static MySoft.Data.Field Cumulative = new MySoft.Data.Field<_LotteryBriefing>("Cumulative");
    			
    			/// <summary>
    			/// 字段名：Provider - 数据类型：Int32
    			/// </summary>
    			public static MySoft.Data.Field Provider = new MySoft.Data.Field<_LotteryBriefing>("Provider");
    		}
    	}
    }
    